from django.contrib import admin
import xadmin
from .models import Blog
# Register your models here.
class BlogAdmin(object):
    list_display = ['blog_title', 'blog_desc', 'blog_author',  'blog_tag', 'blog_create_time']
    search_fields = ['blog_title', 'blog_desc', 'blog_author',  'blog_tag']
    list_filter = ['blog_title', 'blog_desc', 'blog_author',  'blog_tag', 'blog_create_time']
    style_fields = {"blog_content": "ueditor"}

xadmin.site.register(Blog, BlogAdmin)